<template>
  <div>
    <station mapId="ntrip"
             :position="coordinateInfo"
             :coordinate="realDataInfo.coordinate"
             :region="region"
             :regionName="item.region_name"
             :reset="reset"
             :equipment="equipment"
             class="region"></station>
  </div>
</template>

<script>
  import Bus from "../js/bus" ;
  import Station from '../components/StationItem'

  export default {
    components: {
      Station
    },
    data() {
      return {
        station: {},
        coordinateInfo: {},
        realDataInfo: {
          rotationAngle: {},
          coordinate: {},
          rtkStationData: [],
          labelData: [],
          uwbStationData: []
        },
        historyDataInfo: {
          rotationAngle: {},
          coordinate: {},
          labelData: [],
          rtkStationData: [],
          uwbStationData: []
        },
        region: [],
        reset: "",
        item: {
          "region_name": '12',
        },
        equipment: [],
      }
    },
    mounted: function () {
      Bus.$on("message", (data) => {
        this.coordinateInfo = JSON.parse(JSON.stringify(data)).data;
      })
    },
  }
</script>

<style scoped>
  .region {
    width: 600px;
    height: 600px;
  }
</style>
